package forms

import "time"

type QueryActivityForm struct {
	Status  int       `form:"Status" binding:"oneof=0 1 2"`
	ShopID  int       `form:"ShopID"`
	EndTime time.Time `form:"EndTime" time_format:"2006-01-02"`
}

func NewQueryActivityForm() *QueryActivityForm {
	day, _ := time.ParseDuration("-24h")
	return &QueryActivityForm{
		Status:  0,
		ShopID:  0,
		EndTime: time.Now().Add(day * 365),
	}
}
